<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <head th:include="views/public"/>
    <title>管理后台</title>
</head>
<body class="layui-layout-body">
    <div id="vm" class="layui-layout layui-layout-admin">
        <div class="layui-header custom-header">
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item slide-sidebar" lay-unselect>
                    <a href="javascript:;" class="icon-font"><i class="ai ai-menufold"></i></a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a shiro:principal property="username"></a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a @click="openDialog">修改密码</a>
                        </dd>
                        <dd><a href="/logout">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side custom-admin">
            <div class="layui-side-scroll" lay-filter="nav_tab">
                <div class="custom-logo">
                    <img src="/assets/images/logo.png" alt=""/>
                    <h1>Admin</h1>
                </div>
                <ul id="Nav" class="layui-nav layui-nav-tree" >
                    <!-- 打开关闭 -->
                    <li class="layui-nav-item" v-for="item in menu">
                        <dd>
                            <a href="javascript:;">
                                <i :class="item.icon"></i>
                                <em>{{item.name}}</em>
                            </a>
                            <dl class="layui-nav-child" v-for="exam in item.children">
                                <dd>
                                    <a :href="exam.url">
                                        <i :class="exam.icon"></i>
                                        <em>{{exam.name}}</em>
                                    </a>
                                </dd>
                            </dl>
                        </dd>
                    </li>
                </ul>
            </div>
        </div>
        <el-dialog title="修改密码" :visible.sync="dialogFormVisible" width="30%" center>
            <el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm">
                <el-form-item label="密码" prop="password">
                    <el-input type="password" v-model="ruleForm.password" autocomplete="off"></el-input>
                </el-form-item>
                <el-form-item label="新密码" prop="newPassword">
                    <el-input type="password" v-model="ruleForm.newPassword"  autocomplete="off"></el-input>
                </el-form-item>
                <el-form-item label="确认密码" prop="newPasswordRepeat">
                    <el-input type="password" v-model="ruleForm.newPasswordRepeat" autocomplete="off"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
                    <el-button @click="resetForm('ruleForm')">重置</el-button>
                </el-form-item>
            </el-form>
        </el-dialog>
        <div class="layui-body">
             <div class="layui-tab app-container" lay-allowClose="false" lay-filter="tabs">
                <ul id="appTabs" class="layui-tab-title custom-tab">
                    <li class="home">项目介绍</li>
                </ul>
                <div id="appTabPage" class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe src='/views/sys/user.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-footer">
            <!--内容自定义-->
        </div>
        <div class="mobile-mask"></div>
    </div>
    <script th:src="@{/assets/js/sys/index.js}"></script>
    <script th:src="@{/assets/js/sys/index1.js}"></script>
</body>
</html>